home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
games
/
wasps003.zip
/
INCLUSIF.ZIP
/
SUBASCII.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-02-10
|
649b
|
22 lines
1 REM H1TaS
10 INPUT"FIRST INPUT FILE"; F2$: INPUT"SECOND INPUT FILE"; F1$: D$ = F1$
20 INPUT "SPARE ALL FILES WITH THIS STRING IN THEM"; S$
30 OPEN D$ FOR INPUT AS 1
40 ON ERROR GOTO 90
50 LINE INPUT #1, L$
60 N$ = L$
70 IF INSTR(L$, S$) = 0 THEN GOSUB 2010
79 ON ERROR GOTO 90
80 GOTO 50
90 RESUME 100
100 CLOSE: STOP
2000 REM
2010 FI$ = F2$
2020 P$ = N$: OPEN FI$ FOR INPUT AS 2: OPEN "B" FOR OUTPUT AS 3
2030 ON ERROR GOTO 2070
2040 LINE INPUT #2, L$
2050 X = INSTR(L$, P$): IF X = 0 THEN PRINT L$: PRINT #3, L$: GOTO 2040
2060 BEEP: GOTO 2040
2070 RESUME 2080
2080 CLOSE 2: CLOSE 3: SHELL "COPY B " + F2$: RETURN